import {
    center,
    grid,
    search,
} from '@/css/VueCss.module.scss' ;

export default {
    title: '导入记录',
    items: [{
        region: 'center',
        class: center,
        layout: 'vertical',
        items: [{
            items: [{
                id: 'search',
                class: search,
                widget: 'search-datesearch',
                times: [{
                    label: '今日',
                    value: 'today'
                }, {
                    label: '昨日',
                    value: 'yesterday'
                }, {
                    label: '近7日',
                    value: 'lately7'
                }, {
                    label: '近30日',
                    value: 'lately30'
                }],
                rangeTimes: true,
                text: {
                    field: 'keywords',
                    placeholder: '请输入手机号码'
                },
                onSearch: [{
                    action: 'grid-load',
                    target: '$widgets.grid',
                    params: {
                        type: 1,
                        page_size: '$widgets.grid.pageSize',
                        keywords: '$params.keywords',
                    }
                }]
            }]
        }, {
            id: 'grid',
            class: grid,
            widget: 'grid',
            service: {
                path: 'customers_pool/my/import_record/list',
                params: {
                    name: 'my_pool',
                },
            },
            pageSize: 20,
            columns: [{
                prop: 'storage_type',
                label: '存储位置',
                dictionary: 'common/static/storage_type',
                width: 120
            }, {
                prop: 'operator_uuid',
                label: '操作人员',
                width: 140
            }, {
                prop: 'origin_name',
                label: '文件名称',
                minWidth: 180
            }, {
                prop: 'extension',
                label: '文件类型',
                width: 120
            }, {
                prop: 'create_time',
                label: '上传时间',
                width: 180
            }],
            flex: true,
        }]
    }]
};
